<?php declare(strict_types=1);


namespace PinWuYun\domain\logic\common;

use LogicException;

/**
 * Creator : zhiJie
 * Date: 2021/7/6
 */
class Logic
{
    /**
     * 判断是否为空
     * @param $key
     * @param string $msg
     */
    public static function isEmpty($key, string $msg = '')
    {
        if($key) {
            throw new LogicException($msg?:'变量值为空');
        }
    }
}